package com.trans.anno;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author xwduo
 * @Date 2023-10-07 08:53
 */
@Target({ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Desensitise {

    @Info("前脱敏")
    int prefix() default 0;

    @Info("中间脱敏")
    int middle() default 0;

    @Info("尾部脱敏")
    int suffix() default 0;

    @Info("全脱敏")
    boolean isAll() default false;
}
